<?php
/**
 * @fileoverview    我的分享（仅图片）翻页
 * @author          xinhua
 * @date            Feb  02 11:31:49 CST 2012
 * @copyright       sina meila
 */

include_once '../../__global.php';
include_once './scroll_public.php';
class aj_scrollSharePic extends scroll_public{

    public function main(){
        
        $shareModle=new ml_model_dbContent();
        $total=$shareModle->get_count_by_uid($this->_uid);
        $data=$shareModle->get_content_by_uid($this->_uid, $this->_begin,ML_FEED_PAGESIZE);//第一个数据页数，第二个offset，第三个参数数据类型
        
        
        $pin_biz=new ml_biz_pin_content();
        $data=$pin_biz->output($this->__visitor['uid'], $data, $this->ifme);
        
        
        $last=count($data)<ML_FEED_PAGESIZE?true:false;
        $finnal['lastSegment']=$last;
        $finnal['items']=$data;
        
        $this->api_output(ML_RCODE_SUCC,$finnal);

    }
}
new aj_scrollSharePic();
?>